<div class="modal fade" id="editModal" tabindex="-1" role="dialog" 
   aria-labelledby="myModalLabel" aria-hidden="true">
   <div class="modal-dialog">
      <div class="modal-content">
         <div class="modal-header">
            <button type="button" class="close" 
               data-dismiss="modal" aria-hidden="true">
                  &times;
            </button>
            <h4 class="modal-title" id="myModalLabel">
            	修改用户
            </h4>
         </div>
         <div class="modal-body">
           	<form id="editForm">
           		<table>
           			<tr>
           				<td>
           				用户名：
           				</td>
           				<td>
           				<input type="hidden" name="id" value="${user.id}"/>
           				<input name="userName" value="${user.userName}"/>
           				</td>
           			</tr>
           			<tr>
           				<td>
           				拥有角色：
           				</td>
           				<td>
	           				<#list roleList as role>
	           					<input type="checkbox" 
	           						<#list userHasRoleList as hasRole>
	           							<#if hasRole.id==role.id>
	           							 checked=true
	           							</#if>
	           						</#list>
	           						value="${role.id}" name="role"/> ${role.roleName}
	           				</#list>
           				</td>
           			</tr>
           		</table>
           	</form>
         </div>
         <div class="modal-footer">
            <button type="button" class="btn btn-default" 
               data-dismiss="modal">关闭
            </button>
            <button type="button" class="btn btn-primary" onclick="editUserFn();">
              	 提交更改
            </button>
         </div>
      </div>
</div>